package com.huaxin.hxmoduleworkorder.mapping;

import com.huaxin.hxmoduleworkorder.dto.request.InspectionOrderCabinetCreateReqDTO;
import com.huaxin.hxmoduleworkorder.dto.request.InspectionOrderCabinetUpdateReqDTO;
import com.huaxin.hxmoduleworkorder.models.InspectionOrderCabinet;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

import java.util.List;

@Mapper(componentModel = "spring")
public interface InspectionOrderCabinetMapping {
    InspectionOrderCabinet toEntity(InspectionOrderCabinetCreateReqDTO in);

    List<InspectionOrderCabinet> toEntityList(List<InspectionOrderCabinetCreateReqDTO> in);

    void updateEntity(InspectionOrderCabinetUpdateReqDTO in, @MappingTarget InspectionOrderCabinet inspectionOrderCabinet);
}
